package com.csproj.dispatch.service.mapper;

import com.csproj.dispatch.domain.Dispatch;
import com.csproj.dispatch.service.dto.DispatchDTO;
import com.csproj.siiat.service.mapper.EntityMapper;
import org.mapstruct.Mapper;

/**
 * Mapper for the entity Dispatch and its DTO DispatchDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface DispatchMapper extends EntityMapper<DispatchDTO, Dispatch> {

    

    

    default Dispatch fromId(String id) {
        if (id == null) {
            return null;
        }
        Dispatch dispatch = new Dispatch();
        dispatch.setId(id);
        return dispatch;
    }
}
